<?php
class ControllerCommonTrack extends Controller {
	//mail tracking
	public function mail() {
		$code = G('code');
		if ($code) {
			$id = decrypt($code);
			
			if (is_numeric($id)) {
				echo $id;
				$this->db->runSql("UPDATE @@mail_taskitem SET date_opened='{$GLOBALS['V5_NOW']}' WHERE mail_taskitem_id=$id AND date_opened IS NULL");
			}
		}
	}
}